Optimal. Leaf size=54 \[ \frac {x (b c-a d) \, _2F_1\left (1,\frac {1}{m-n};1+\frac {1}{m-n};-\frac {c x^{m-n}}{d}\right )}{c d}+\frac {a x}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {1593, 1584, 388, 245} \[ \frac {x (b c-a d) \, _2F_1\left (1,\frac {1}{m-n};1+\frac {1}{m-n};-\frac {c x^{m-n}}{d}\right )}{c d}+\frac {a x}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 245
Rule 388
Rule 1584
Rule 1593
Rubi steps
\begin {align*} \int \frac {a x^m+b x^n}{c x^m+d x^n} \, dx &=\int \frac {x^n \left (b+a x^{m-n}\right )}{c x^m+d x^n} \, dx\\ &=\int \frac {b+a x^{m-n}}{d+c x^{m-n}} \, dx\\ &=\frac {a x}{c}-\frac {(-b c+a d) \int \frac {1}{d+c x^{m-n}} \, dx}{c}\\ &=\frac {a x}{c}+\frac {(b c-a d) x \, _2F_1\left (1,\frac {1}{m-n};1+\frac {1}{m-n};-\frac {c x^{m-n}}{d}\right )}{c d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 52, normalized size = 0.96 \[ \frac {x \left ((b c-a d) \, _2F_1\left (1,\frac {1}{m-n};1+\frac {1}{m-n};-\frac {c x^{m-n}}{d}\right )+a d\right )}{c d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.02, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a x^{m} + b x^{n}}{c x^{m} + d x^{n}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a x^{m} + b x^{n}}{c x^{m} + d x^{n}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.92, size = 0, normalized size = 0.00 \[ \int \frac {a \,x^{m}+b \,x^{n}}{c \,x^{m}+d \,x^{n}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -{\left (b c - a d\right )} \int \frac {x^{m}}{c d x^{m} + d^{2} x^{n}}\,{d x} + \frac {b x}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {a\,x^m+b\,x^n}{c\,x^m+d\,x^n} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a x^{m} + b x^{n}}{c x^{m} + d x^{n}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________